const VueRouter = require('vue-router')

/*注意，routes.js为自动生成文件，修改无效!
 * views/system/UserList.vue => /system/user-list
 * views/system/List.vue => /system/list
 * views/List.vue => /list
 * views/MainList.vue => /main/list
 * views/user/UserList.vue => /user/list
 */
import routes from './routes'

Vue.use(VueRouter);

routes.push({path:'/',redirect:'/batch/list'},{
  path: '*',
  name:'404',
  meta:{title:'错误页面'},
  "components":{default:require('../views/404.vue').default}
});


export default new VueRouter({
  routes: routes
});